﻿namespace Cos.Core.NHibernate
{
    #region Usings

    using Cos.Core.Model;

    #endregion

    public abstract class DataModelBase<T>
        where T : DomainModelBase, new()
    {
        #region Public Methods

        public abstract void Fill(T model);

        public abstract T ToModel();

        #endregion

        #region Methods

        protected T CreateModel()
        {
            return new T();
        }

        #endregion
    }
}